TextFinder

public interface TextFinder

Allows finding text on the loaded web page.

Functions

Link copied to clipboard
public abstract Browser browser()
Returns the Browser instance of this text finder.
Link copied to clipboard
public abstract void find(String text, Consumer<FindResult> consumer)
Performs search of the given text, highlights all matches and selects the first match on the currently loaded web page.
public abstract void find(String text, FindOptions options, Consumer<FindResult> consumer)
Performs search of the given text with the given options, highlights all matches and selects the first or the last (depending on the given isSearchBackward flag) match on the currently loaded web page.
Link copied to clipboard
public abstract void stopFindingAndClearSelection()
Stops finding and clears the highlighting of the found matches.
Link copied to clipboard
public abstract void stopFindingAndKeepSelection()
Stops finding and keeps the currently highlighted match selected.